Packetery\Module\Checkout D

Total Complexity 158
Dependencies 33
Dependents 3
Total lines 1,148
Lines of code 635
Logical lines of code 324
Comment lines 243
Methods 39
Properties 14

Methods 39

Method Rating Maintainability Complexity Lines of code
validateCheckoutData()
C
34 23 90
updateOrderMeta()
B
39 18 62
calculateFees()
A
44 11 46
filterPaymentGateways()
A
47 11 35
getPostDataIncludingStoredData()
A
50 11 31
getTaxClassWithMaxRate()
A
49 9 33
getShippingRates()
A
48 8 32
isShippingRateRestrictedByProductsCategory()
S
55 6 20
getCODSurcharge()
S
60 6 13
createSettings()
S
45 2 43
register_hooks()
S
54 3 21
renderWidgetButtonAfterShippingRate()
S
57 3 18
isAgeVerification18PlusRequired()
S
63 4 10
getDisallowedShippingRateIds()
S
61 3 12
renderWidgetButtonTableRow()
S
59 2 15
isCodPaymentMethod()
S
74 3 4
__construct()
S
58 1 16
updateShippingPackages()
S
70 2 6
isPickupPointOrder()
S
72 2 5
getChosenMethod()
S
68 2 7
getChosenPaymentMethod()
S
70 2 7
calculateShipping()
S
67 2 8
getCarrierId()
S
69 2 7
getCarrierIdFromShippingMethod()
S
71 2 6
isHomeDeliveryOrder()
S
72 2 5
isPickupPointCarrier()
S
71 2 6
getCartWeightKg()
S
67 2 8
getCustomerCountry()
S
69 2 7
updateShippingRates()
S
69 2 6
getPickupPointValidateRequest()
S
61 1 14
renderHiddenInputFields()
S
63 1 11
getRateCost()
S
78 1 3
getCartPrice()
S
80 1 3
getCartContentsTotalIncludingTax()
S
79 1 3
isFreeShippingCouponApplied()
S
80 1 3
createShippingRate()
S
66 1 9
removeShippingMethodPrefix()
S
78 1 3
isPacketeryShippingMethod()
S
75 1 4
getTransientNamePacketaCheckoutData()
S
80 1 3